<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    let num1 = parseInt("31.5");
    console.log(num1);

    let num2 = parseInt("31.5");
    console.log(num2);

    let num3 = parseInt("a3a1abc4");
    console.log(num3);

    // 判断isNaN是否是非数值
    console.log(isNaN("1122"));
    // 进行解码
    let urlEn = encodeURI("www.xiaoxiao.com");
    console.log(urlEn);
</script>
</body>
</html>